package model;

import java.util.Date;

public class Reservation {
	private int reservation_id;
	private int customer_id;
	private int room_id;
	private Date expected_arrive_date;
	private Date expected_departure_date;
	private int status; // 1-cancel ; 2 -used; 3/ waiting...
	private String note;
	private int employee_check_in;
	private int employee_check_out;
	private int employee_reservation;

	public int getEmployee_check_in() {
		return employee_check_in;
	}

	public void setEmployee_check_in(int employee_check_in) {
		this.employee_check_in = employee_check_in;
	}

	public int getEmployee_check_out() {
		return employee_check_out;
	}

	public void setEmployee_check_out(int employee_check_out) {
		this.employee_check_out = employee_check_out;
	}

	public int getEmployee_reservation() {
		return employee_reservation;
	}

	public void setEmployee_reservation(int employee_reservation) {
		this.employee_reservation = employee_reservation;
	}

	public Reservation() {
	}

	public Reservation(int reservation_id, int customer_id, int room_id,
			Date expected_arrive_date, Date expected_departure_date,
			int status, String note, int employee_reservation) {
		super();
		this.reservation_id = reservation_id;
		this.customer_id = customer_id;
		this.room_id = room_id;
		this.expected_arrive_date = expected_arrive_date;
		this.expected_departure_date = expected_departure_date;
		this.status = status;
		this.note = note;
	}

	public Reservation(int reservation_id, int customer_id, int room_id,
			Date expected_arrive_date, Date expected_departure_date,
			int status, String note, int employee_check_in,
			int employee_check_out, int employee_reservation) {
		super();
		this.reservation_id = reservation_id;
		this.customer_id = customer_id;
		this.room_id = room_id;
		this.expected_arrive_date = expected_arrive_date;
		this.expected_departure_date = expected_departure_date;
		this.status = status;
		this.note = note;
		this.employee_check_in = employee_check_in;
		this.employee_check_out = employee_check_out;
		this.employee_reservation = employee_reservation;
	}

	public int getReservation_id() {
		return reservation_id;
	}

	public void setReservation_id(int reservation_id) {
		this.reservation_id = reservation_id;
	}

	public int getCustomer_id() {
		return customer_id;
	}

	public void setCustomer_id(int customer_id) {
		this.customer_id = customer_id;
	}

	public int getRoom_id() {
		return room_id;
	}

	public void setRoom_id(int room_id) {
		this.room_id = room_id;
	}

	public Date getExpected_arrive_date() {
		return expected_arrive_date;
	}

	public void setExpected_arrive_date(Date expected_arrive_date) {
		this.expected_arrive_date = expected_arrive_date;
	}

	public Date getExpected_departure_date() {
		return expected_departure_date;
	}

	public void setExpected_departure_date(Date expected_departure_date) {
		this.expected_departure_date = expected_departure_date;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Override
	public String toString() {
		return "Reservation [reservation_id=" + reservation_id
				+ ", customer_id=" + customer_id + ", room_id=" + room_id
				+ ", expected_arrive_date=" + expected_arrive_date
				+ ", expected_departure_date=" + expected_departure_date
				+ ", status=" + status + ", note=" + note
				+ ", employee_check_in=" + employee_check_in
				+ ", employee_check_out=" + employee_check_out
				+ ", employee_reservation=" + employee_reservation + "]";
	}

	public boolean equals(Reservation reser){
		return ((reservation_id == reser.getReservation_id()) &&
				(customer_id == reser.getCustomer_id()) &&
				(room_id == reser.getRoom_id()) &&
				(expected_arrive_date == reser.getExpected_arrive_date()) &&
				(expected_departure_date == reser.getExpected_departure_date()) &&
				(status == reser.getStatus()) &&
				(note == reser.getNote()) &&
				(employee_check_in == reser.getEmployee_check_in()) &&
				(employee_check_out == reser.getEmployee_check_out()) &&
				(employee_reservation == reser.getEmployee_reservation()));	
	}

}
